/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewJDialog.java
 *
 * Created on Dec 31, 2010, 11:13:18 AM
 */

package GUI;

import java.util.ArrayList;
import java.util.Date;
import javax.swing.JOptionPane;

/**
 *
 * @author Toshiba Satellite
 */
public class JobSeeker extends javax.swing.JDialog {

    private ArrayList<Entity.Jobseeker> arrJob;
    private ArrayList<Entity.Jobseeker> arrFilter;

    /** Creates new form NewJDialog */
    public JobSeeker(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();

        setLocationRelativeTo(null);
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        tabAdd = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        txtAddID = new javax.swing.JTextField();
        txtAddName = new javax.swing.JTextField();
        txtAddDOB = new javax.swing.JTextField();
        txtAddSpeciality = new javax.swing.JTextField();
        txtAddAddress = new javax.swing.JTextField();
        txtAddLocaltion = new javax.swing.JTextField();
        txtAddPhone = new javax.swing.JTextField();
        txtAddEmail = new javax.swing.JTextField();
        txtAddSalary = new javax.swing.JTextField();
        cobAddSex = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();
        jLabel11 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtAddEducation = new javax.swing.JTextArea();
        jLabel12 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        txtAddSkill = new javax.swing.JTextArea();
        jScrollPane3 = new javax.swing.JScrollPane();
        txtAddCertificate = new javax.swing.JTextArea();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtAddExperience = new javax.swing.JTextArea();
        jScrollPane5 = new javax.swing.JScrollPane();
        txtAddNote = new javax.swing.JTextArea();
        btnAdd = new javax.swing.JButton();
        jScrollPane18 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jLabel33 = new javax.swing.JLabel();
        btnResetAdd = new javax.swing.JButton();
        tabEdit = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        txtEditID = new javax.swing.JTextField();
        txtEditName = new javax.swing.JTextField();
        txtEditDoB = new javax.swing.JTextField();
        txtEditSpecialty = new javax.swing.JTextField();
        txtEditAddress = new javax.swing.JTextField();
        txtEditLocation = new javax.swing.JTextField();
        txtEditPhoneNumber = new javax.swing.JTextField();
        txtEditEmail = new javax.swing.JTextField();
        txtEditSalary = new javax.swing.JTextField();
        cobEditSex = new javax.swing.JComboBox();
        jButton2 = new javax.swing.JButton();
        jLabel26 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        txtEditEducation = new javax.swing.JTextArea();
        jLabel27 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        txtEditSkill = new javax.swing.JTextArea();
        jScrollPane8 = new javax.swing.JScrollPane();
        txtEditCerti = new javax.swing.JTextArea();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jScrollPane9 = new javax.swing.JScrollPane();
        txtEditExperience = new javax.swing.JTextArea();
        jScrollPane10 = new javax.swing.JScrollPane();
        txtEditNote = new javax.swing.JTextArea();
        btnUpdate = new javax.swing.JToggleButton();
        btnDelete = new javax.swing.JButton();
        jScrollPane17 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jLabel34 = new javax.swing.JLabel();
        btnReset = new javax.swing.JButton();
        tabSerach = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        txtSearchID = new javax.swing.JTextField();
        txtSearchName = new javax.swing.JTextField();
        jScrollPane16 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jLabel35 = new javax.swing.JLabel();
        cobSearchSex1 = new javax.swing.JComboBox();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        btnResetSearch = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("JobSeeker");

        jTabbedPane1.setPreferredSize(new java.awt.Dimension(730, 450));

        jLabel1.setText("ID:");

        jLabel2.setText("Name:");

        jLabel3.setText("Date Of Birth:");

        jLabel4.setText("Sex");

        jLabel5.setText("Speciality");

        jLabel6.setText("Address");

        jLabel7.setText("Location");

        jLabel8.setText("Phone Number");

        jLabel9.setText("Email");

        jLabel10.setText("Salary");

        txtAddID.setEnabled(false);
        txtAddID.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtAddIDActionPerformed(evt);
            }
        });

        txtAddName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtAddNameActionPerformed(evt);
            }
        });

        txtAddSpeciality.setEnabled(false);

        cobAddSex.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Male", "Female" }));

        jButton1.setText("jButton1");

        jLabel11.setText("Education");

        txtAddEducation.setColumns(20);
        txtAddEducation.setRows(5);
        jScrollPane1.setViewportView(txtAddEducation);

        jLabel12.setText("Skill");

        txtAddSkill.setColumns(20);
        txtAddSkill.setRows(5);
        jScrollPane2.setViewportView(txtAddSkill);

        txtAddCertificate.setColumns(20);
        txtAddCertificate.setRows(5);
        jScrollPane3.setViewportView(txtAddCertificate);

        jLabel13.setText("Certificate");

        jLabel14.setText("Experience");

        jLabel15.setText("Note");

        txtAddExperience.setColumns(20);
        txtAddExperience.setRows(5);
        jScrollPane4.setViewportView(txtAddExperience);

        txtAddNote.setColumns(20);
        txtAddNote.setRows(5);
        jScrollPane5.setViewportView(txtAddNote);

        btnAdd.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/plus.png"))); // NOI18N
        btnAdd.setText("Add");
        btnAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddActionPerformed(evt);
            }
        });

        jScrollPane18.setViewportView(jTable3);

        jLabel33.setFont(new java.awt.Font("Tahoma", 3, 12));
        jLabel33.setText("Information: ");

        btnResetAdd.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnResetAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/ok.png"))); // NOI18N
        btnResetAdd.setText("Reset");
        btnResetAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnResetAddActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tabAddLayout = new javax.swing.GroupLayout(tabAdd);
        tabAdd.setLayout(tabAddLayout);
        tabAddLayout.setHorizontalGroup(
            tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabAddLayout.createSequentialGroup()
                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabAddLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3)
                            .addComponent(jLabel2)
                            .addComponent(jLabel6)
                            .addComponent(jLabel7)
                            .addComponent(jLabel8)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)
                            .addComponent(jLabel1)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5))
                        .addGap(25, 25, 25)
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cobAddSex, 0, 148, Short.MAX_VALUE)
                            .addComponent(txtAddDOB, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                            .addComponent(txtAddSalary, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                            .addComponent(txtAddEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                            .addComponent(txtAddPhone, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                            .addComponent(txtAddLocaltion, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabAddLayout.createSequentialGroup()
                                .addComponent(txtAddSpeciality, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(txtAddID, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtAddName, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)
                            .addComponent(txtAddAddress, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE))
                        .addGap(93, 93, 93)
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel11)
                            .addComponent(jLabel13)
                            .addComponent(jLabel14)
                            .addComponent(jLabel15))
                        .addGap(15, 15, 15)
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(tabAddLayout.createSequentialGroup()
                                .addComponent(btnResetAdd, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
                                .addGap(27, 27, 27)
                                .addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE))
                        .addGap(19, 19, 19))
                    .addGroup(tabAddLayout.createSequentialGroup()
                        .addGap(46, 46, 46)
                        .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(tabAddLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 693, Short.MAX_VALUE)))
                .addContainerGap())
        );
        tabAddLayout.setVerticalGroup(
            tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabAddLayout.createSequentialGroup()
                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabAddLayout.createSequentialGroup()
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tabAddLayout.createSequentialGroup()
                                .addGap(14, 14, 14)
                                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tabAddLayout.createSequentialGroup()
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(txtAddID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel1))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel2)
                                            .addComponent(txtAddName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(21, 21, 21)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(txtAddDOB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel3)
                                            .addComponent(jLabel12)))
                                    .addGroup(tabAddLayout.createSequentialGroup()
                                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(tabAddLayout.createSequentialGroup()
                                .addGap(31, 31, 31)
                                .addComponent(jLabel11)))
                        .addGap(18, 18, 18)
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tabAddLayout.createSequentialGroup()
                                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tabAddLayout.createSequentialGroup()
                                        .addGap(11, 11, 11)
                                        .addComponent(jLabel13))
                                    .addGroup(tabAddLayout.createSequentialGroup()
                                        .addGap(22, 22, 22)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(txtAddSpeciality, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton1)
                                            .addComponent(jLabel5))))
                                .addGap(18, 18, 18)
                                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel6)
                                    .addComponent(txtAddAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel14))
                                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tabAddLayout.createSequentialGroup()
                                        .addGap(18, 18, 18)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel7)
                                            .addComponent(txtAddLocaltion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel8)
                                            .addComponent(txtAddPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel9)
                                            .addComponent(txtAddEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel10)
                                            .addComponent(txtAddSalary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(tabAddLayout.createSequentialGroup()
                                        .addGap(41, 41, 41)
                                        .addComponent(jLabel15))))
                            .addGroup(tabAddLayout.createSequentialGroup()
                                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(btnAdd, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btnResetAdd, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)))))
                    .addGroup(tabAddLayout.createSequentialGroup()
                        .addGap(124, 124, 124)
                        .addGroup(tabAddLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cobAddSex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))))
                .addGap(17, 17, 17)
                .addComponent(jLabel33)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane18, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(58, 58, 58))
        );

        jTabbedPane1.addTab("Add", new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/plus.png")), tabAdd); // NOI18N

        jLabel16.setText("ID");

        jLabel17.setText("Name");

        jLabel18.setText("Date Of Birth");

        jLabel19.setText("Gender");

        jLabel20.setText("Speciality");

        jLabel21.setText("Address");

        jLabel22.setText("Location");

        jLabel23.setText("Phone Number");

        jLabel24.setText("Email");

        jLabel25.setText("Salary");

        txtEditID.setEnabled(false);
        txtEditID.setPreferredSize(new java.awt.Dimension(60, 20));

        txtEditSpecialty.setEnabled(false);

        cobEditSex.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Male", "Female" }));

        jButton2.setText("jButton1");

        jLabel26.setText("Education");

        txtEditEducation.setColumns(20);
        txtEditEducation.setRows(5);
        jScrollPane6.setViewportView(txtEditEducation);

        jLabel27.setText("Skill");

        txtEditSkill.setColumns(20);
        txtEditSkill.setRows(5);
        jScrollPane7.setViewportView(txtEditSkill);

        txtEditCerti.setColumns(20);
        txtEditCerti.setRows(5);
        jScrollPane8.setViewportView(txtEditCerti);

        jLabel28.setText("Certificate");

        jLabel29.setText("Experience");

        jLabel30.setText("Note");

        txtEditExperience.setColumns(20);
        txtEditExperience.setRows(5);
        jScrollPane9.setViewportView(txtEditExperience);

        txtEditNote.setColumns(20);
        txtEditNote.setRows(5);
        jScrollPane10.setViewportView(txtEditNote);

        btnUpdate.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnUpdate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/upcoming-work.png"))); // NOI18N
        btnUpdate.setText("Update");

        btnDelete.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/delete.png"))); // NOI18N
        btnDelete.setText("Delete");

        jScrollPane17.setViewportView(jTable2);

        jLabel34.setFont(new java.awt.Font("Tahoma", 3, 12));
        jLabel34.setText("Information: ");

        btnReset.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnReset.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/ok.png"))); // NOI18N
        btnReset.setText("Reset");
        btnReset.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnResetActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tabEditLayout = new javax.swing.GroupLayout(tabEdit);
        tabEdit.setLayout(tabEditLayout);
        tabEditLayout.setHorizontalGroup(
            tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabEditLayout.createSequentialGroup()
                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, tabEditLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 693, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, tabEditLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel18)
                            .addComponent(jLabel17)
                            .addComponent(jLabel21)
                            .addComponent(jLabel22)
                            .addComponent(jLabel23)
                            .addComponent(jLabel24)
                            .addComponent(jLabel25)
                            .addComponent(jLabel16)
                            .addComponent(jLabel19)
                            .addComponent(jLabel20))
                        .addGap(25, 25, 25)
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cobEditSex, 0, 145, Short.MAX_VALUE)
                            .addComponent(txtEditSalary, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addComponent(txtEditEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addComponent(txtEditPhoneNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addComponent(txtEditLocation, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addComponent(txtEditAddress, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabEditLayout.createSequentialGroup()
                                .addComponent(txtEditSpecialty, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(txtEditID, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtEditDoB, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addComponent(txtEditName, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE))
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addGap(93, 93, 93)
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel27)
                                    .addComponent(jLabel26)
                                    .addComponent(jLabel28)
                                    .addComponent(jLabel30)
                                    .addComponent(jLabel29)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabEditLayout.createSequentialGroup()
                                .addGap(52, 52, 52)
                                .addComponent(btnReset, javax.swing.GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addGap(37, 37, 37)
                                .addComponent(btnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(38, 38, 38)
                                .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addGap(32, 32, 32)
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane9)
                                    .addComponent(jScrollPane8)
                                    .addComponent(jScrollPane7)
                                    .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)
                                    .addComponent(jScrollPane10)))))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, tabEditLayout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        tabEditLayout.setVerticalGroup(
            tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabEditLayout.createSequentialGroup()
                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabEditLayout.createSequentialGroup()
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addGap(14, 14, 14)
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tabEditLayout.createSequentialGroup()
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(txtEditID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel16))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel17)
                                            .addComponent(txtEditName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(21, 21, 21)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(txtEditDoB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel18)
                                            .addComponent(jLabel27)))
                                    .addGroup(tabEditLayout.createSequentialGroup()
                                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addGap(31, 31, 31)
                                .addComponent(jLabel26)))
                        .addGap(18, 18, 18)
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tabEditLayout.createSequentialGroup()
                                        .addGap(11, 11, 11)
                                        .addComponent(jLabel28))
                                    .addGroup(tabEditLayout.createSequentialGroup()
                                        .addGap(22, 22, 22)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(txtEditSpecialty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton2)
                                            .addComponent(jLabel20))))
                                .addGap(18, 18, 18)
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel21)
                                    .addComponent(txtEditAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel29))
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tabEditLayout.createSequentialGroup()
                                        .addGap(18, 18, 18)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel22)
                                            .addComponent(txtEditLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel23)
                                            .addComponent(txtEditPhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel24)
                                            .addComponent(txtEditEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel25)
                                            .addComponent(txtEditSalary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(tabEditLayout.createSequentialGroup()
                                        .addGap(45, 45, 45)
                                        .addComponent(jLabel30))))
                            .addGroup(tabEditLayout.createSequentialGroup()
                                .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(btnReset, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)
                                    .addComponent(btnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(tabEditLayout.createSequentialGroup()
                        .addGap(124, 124, 124)
                        .addGroup(tabEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cobEditSex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel19))))
                .addGap(18, 18, 18)
                .addComponent(jLabel34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(64, 64, 64))
        );

        jTabbedPane1.addTab("Edit", new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/Edit.png")), tabEdit); // NOI18N

        jLabel31.setText("Search for  id: ");

        jLabel32.setText("Search for name:");

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        jScrollPane16.setViewportView(jTable1);

        jLabel35.setFont(new java.awt.Font("Tahoma", 3, 12));
        jLabel35.setText("Information: ");

        cobSearchSex1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Male", "Female" }));

        jLabel36.setText("Search for gender");

        jLabel37.setText("Enter data you need to search:");

        btnResetSearch.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnResetSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/ok.png"))); // NOI18N
        btnResetSearch.setText("Reset");
        btnResetSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnResetSearchActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tabSerachLayout = new javax.swing.GroupLayout(tabSerach);
        tabSerach.setLayout(tabSerachLayout);
        tabSerachLayout.setHorizontalGroup(
            tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabSerachLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabSerachLayout.createSequentialGroup()
                        .addGap(136, 136, 136)
                        .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel31)
                            .addComponent(jLabel32)
                            .addComponent(jLabel36))
                        .addGap(33, 33, 33)
                        .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cobSearchSex1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtSearchName, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtSearchID, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(40, 40, 40)
                        .addComponent(btnResetSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 693, Short.MAX_VALUE)
                    .addGroup(tabSerachLayout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        tabSerachLayout.setVerticalGroup(
            tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabSerachLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSearchID, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel31))
                .addGap(18, 18, 18)
                .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jLabel32, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtSearchName, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                        .addComponent(btnResetSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(tabSerachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cobSearchSex1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel36))
                .addGap(35, 35, 35)
                .addComponent(jLabel35)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(55, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Search", new javax.swing.ImageIcon(getClass().getResource("/Image/Icon/search.png")), tabSerach); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 718, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 629, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txtAddIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtAddIDActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtAddIDActionPerformed

    private void txtAddNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtAddNameActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtAddNameActionPerformed

        // TODO add your handling code here:
    private void btnResetAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnResetAddActionPerformed
        // TODO add your handling code here:
        txtAddID.setText("");
        txtAddName.setText("");
        //txtDOB.setText("");
        txtAddAddress.setText("");
        txtAddLocaltion.setText("");
        txtAddPhone.setText("");
        txtAddEmail.setText("");
        txtAddSalary.setText("");
        txtAddEducation.setText("");
        txtAddSkill.setText("");
        txtAddCertificate.setText("");
        txtAddExperience.setText("");
        txtAddNote.setText("");
        txtAddSpeciality.setText("");
        cobAddSex.setSelectedIndex(0);
    }//GEN-LAST:event_btnResetAddActionPerformed

    private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddActionPerformed
        // TODO add your handling code here:
//        if(TestAdd() == true)
//        {
//                boolean sex;
//               if(cobAddSex.getSelectedIndex() == 0)
//                            gender = false;
//                        else
//                            gender = true;
//
//               float salary = new Float(Float.valueOf((txtAddSalary.getText()))) ;
//
//                Entity.Jobseeker job = new Entity.Jobseeker(
//                        dao.Classification.getClassID(txtAddSpeciality.getText()),
//                        txtAddName.getText(),
//                        (Date)txtAddDOB.getText(),
//                        gender,
//                        txtAddAddress.getText(),
//                        txtAddLocaltion.getText(),
//                        txtAddPhone.getText(),
//                        txtAddEmail.getText(),
//                        salary,
//                        txtAddSkill.getText(),
//                        txtAddExperience.getText(),
//                        txtAddEducation.getText(),
//                        txtAddCertificate.getText(),
//                        txtAddNote.getText());
//
//
//                if(!dao.Jobseeker.Insert(job)){
//                JOptionPane.showMessageDialog(this, "Cannot add this jobseeker");
//                return;
//                }
//                JOptionPane.showMessageDialog(this, "Add this jobseeker successful");
//
//        }
    }//GEN-LAST:event_btnAddActionPerformed

    private void btnResetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnResetActionPerformed
        // TODO add your handling code here:
        txtEditID.setText("");
        txtEditName.setText("");
        txtEditDoB.setText("");
        txtEditAddress.setText("");
        txtEditLocation.setText("");
        txtEditPhoneNumber.setText("");
        txtEditEmail.setText("");
        txtEditSalary.setText("");
        txtEditEducation.setText("");
        txtEditSkill.setText("");
        txtEditCerti.setText("");
        txtEditExperience.setText("");
        txtEditNote.setText("");
        txtEditSpecialty.setText("");
        cobEditSex.setSelectedIndex(0);
    }//GEN-LAST:event_btnResetActionPerformed

    private void btnResetSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnResetSearchActionPerformed
        // TODO add your handling code here:
        txtSearchID.setText("");
        txtSearchName.setText("");
        cobSearchSex1.setSelectedIndex(0);
    }//GEN-LAST:event_btnResetSearchActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                JobSeeker dialog = new JobSeeker(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdd;
    private javax.swing.JButton btnDelete;
    private javax.swing.JButton btnReset;
    private javax.swing.JButton btnResetAdd;
    private javax.swing.JButton btnResetSearch;
    private javax.swing.JToggleButton btnUpdate;
    private javax.swing.JComboBox cobAddSex;
    private javax.swing.JComboBox cobEditSex;
    private javax.swing.JComboBox cobSearchSex1;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JPanel tabAdd;
    private javax.swing.JPanel tabEdit;
    private javax.swing.JPanel tabSerach;
    private javax.swing.JTextField txtAddAddress;
    private javax.swing.JTextArea txtAddCertificate;
    private javax.swing.JTextField txtAddDOB;
    private javax.swing.JTextArea txtAddEducation;
    private javax.swing.JTextField txtAddEmail;
    private javax.swing.JTextArea txtAddExperience;
    private javax.swing.JTextField txtAddID;
    private javax.swing.JTextField txtAddLocaltion;
    private javax.swing.JTextField txtAddName;
    private javax.swing.JTextArea txtAddNote;
    private javax.swing.JTextField txtAddPhone;
    private javax.swing.JTextField txtAddSalary;
    private javax.swing.JTextArea txtAddSkill;
    private javax.swing.JTextField txtAddSpeciality;
    private javax.swing.JTextField txtEditAddress;
    private javax.swing.JTextArea txtEditCerti;
    private javax.swing.JTextField txtEditDoB;
    private javax.swing.JTextArea txtEditEducation;
    private javax.swing.JTextField txtEditEmail;
    private javax.swing.JTextArea txtEditExperience;
    private javax.swing.JTextField txtEditID;
    private javax.swing.JTextField txtEditLocation;
    private javax.swing.JTextField txtEditName;
    private javax.swing.JTextArea txtEditNote;
    private javax.swing.JTextField txtEditPhoneNumber;
    private javax.swing.JTextField txtEditSalary;
    private javax.swing.JTextArea txtEditSkill;
    private javax.swing.JTextField txtEditSpecialty;
    private javax.swing.JTextField txtSearchID;
    private javax.swing.JTextField txtSearchName;
    // End of variables declaration//GEN-END:variables

     private boolean TestAdd(){

        if(txtAddName.getText().equals("")){txtAddName.requestFocus();
        JOptionPane.showMessageDialog(null, "Jobseeker name is not blank");
        return false;}

        if(txtAddDOB.getText().equals("")){txtAddDOB.requestFocus();
        JOptionPane.showMessageDialog(null, "Please enter value of Jobseeker DOB (dd/mm/yyyy)");
        return false;}

        if(txtAddSpeciality.getText().equals("")){txtAddSpeciality.requestFocus();
        JOptionPane.showMessageDialog(null, "Jobseeker Specciality is not blank");
        return false;}

        if(txtAddAddress.getText().equals("")){txtAddAddress.requestFocus();
        JOptionPane.showMessageDialog(null, "Jobseeker Address is not blank");
        return false;}

        if(txtAddLocaltion.getText().equals("")){txtAddLocaltion.requestFocus();
        JOptionPane.showMessageDialog(null, "Jobseeker Location is not blank");
        return false;}

        if(txtAddPhone.getText().equals("")){txtAddPhone.requestFocus();
        JOptionPane.showMessageDialog(null, "Jobseeker Phone is not blank");
        return false;}

        if(txtAddSalary.getText().equals("")){
        txtAddSalary.requestFocus();
        JOptionPane.showMessageDialog(null, "Jobseeker Salary is not blank");
        return false;
        }
        return true;
    }

}